package com.suny.City;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class CityVO {
    /**
     * ID
     */
    @Schema(name = "id", description = "主键")
    private Long id;

    /**
     * 名称
     */
    @Schema(name = "name", description = "名称")
    private String name;

    /**
     * 区域编号
     */
    @Schema(name = "code", description = "区域编号")
    private String code;

    /**
     * 层级 1,2,3
     */
    @Schema(name = "level", description = "层级 1,2,3")
    private Integer level;

    /**
     * 父级ID
     */
    @Schema(name = "parentId", description = "父级ID")
    private Integer parentId;

    /**
     * 拼音首字母缩写
     */
    @Schema(name = "acronym", description = "拼音首字母缩写")
    private String acronym;

    /**
     * 排序
     */
    @Schema(name = "sort", description = "排序")
    private Integer sort;
    /*
     * 子城市列表
     */
    @Schema(name = "children", description = "子城市列表")
    private List<CityVO> children;
}
